package com.woniuxy.educationplatform.service.impl;

import com.woniuxy.educationplatform.bean.TestType;
import com.woniuxy.educationplatform.mapper.QuesTypeMapper;
import com.woniuxy.educationplatform.mapper.TestTypeMapper;
import com.woniuxy.educationplatform.service.ITestTypeService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Transactional(readOnly = true)
@Service
public class TestTypeServiceImpl implements ITestTypeService {
    @Resource
    private TestTypeMapper testTypeMapper;

    @Override
    public List<TestType> findAll() {
        return testTypeMapper.findAll();
    }

    @Override
    public TestType getOneById(Long id) {
        return testTypeMapper.getOneById(id);
    }
}
